package com.cube.poiexcel.util;

/**
 * @author ZT
 * @date 2021/5/23 15:53
 */
public class ExUtil {

    public static String getStackMsg(Exception e) {

        StringBuilder sb = new StringBuilder();
        sb.append("\n");
        StackTraceElement[] stackArray = e.getStackTrace();
        for (StackTraceElement element : stackArray) {
            sb.append(element.toString()).append("\n");
        }
        return sb.toString();
    }


}
